package com.aurora.blog.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.aurora.blog.mapper.BlogNavigationTypeConfigMapper;
import com.aurora.blog.domain.BlogNavigationTypeConfig;
import com.aurora.blog.service.IBlogNavigationTypeConfigService;

/**
 * 导航栏标签类型配置Service业务层处理
 * 
 * @author aurora
 * @date 2024-06-07
 */
@Service
public class BlogNavigationTypeConfigServiceImpl implements IBlogNavigationTypeConfigService 
{
    @Autowired
    private BlogNavigationTypeConfigMapper blogNavigationTypeConfigMapper;

    /**
     * 查询导航栏标签类型配置
     * 
     * @param id 导航栏标签类型配置主键
     * @return 导航栏标签类型配置
     */
    @Override
    public BlogNavigationTypeConfig selectBlogNavigationTypeConfigById(Long id)
    {
        return blogNavigationTypeConfigMapper.selectBlogNavigationTypeConfigById(id);
    }

    /**
     * 查询导航栏标签类型配置列表
     * 
     * @param blogNavigationTypeConfig 导航栏标签类型配置
     * @return 导航栏标签类型配置
     */
    @Override
    public List<BlogNavigationTypeConfig> selectBlogNavigationTypeConfigList(BlogNavigationTypeConfig blogNavigationTypeConfig)
    {
        return blogNavigationTypeConfigMapper.selectBlogNavigationTypeConfigList(blogNavigationTypeConfig);
    }

    /**
     * 新增导航栏标签类型配置
     * 
     * @param blogNavigationTypeConfig 导航栏标签类型配置
     * @return 结果
     */
    @Override
    public int insertBlogNavigationTypeConfig(BlogNavigationTypeConfig blogNavigationTypeConfig)
    {
        return blogNavigationTypeConfigMapper.insertBlogNavigationTypeConfig(blogNavigationTypeConfig);
    }

    /**
     * 修改导航栏标签类型配置
     * 
     * @param blogNavigationTypeConfig 导航栏标签类型配置
     * @return 结果
     */
    @Override
    public int updateBlogNavigationTypeConfig(BlogNavigationTypeConfig blogNavigationTypeConfig)
    {
        return blogNavigationTypeConfigMapper.updateBlogNavigationTypeConfig(blogNavigationTypeConfig);
    }

    /**
     * 批量删除导航栏标签类型配置
     * 
     * @param ids 需要删除的导航栏标签类型配置主键
     * @return 结果
     */
    @Override
    public int deleteBlogNavigationTypeConfigByIds(Long[] ids)
    {
        return blogNavigationTypeConfigMapper.deleteBlogNavigationTypeConfigByIds(ids);
    }

    /**
     * 删除导航栏标签类型配置信息
     * 
     * @param id 导航栏标签类型配置主键
     * @return 结果
     */
    @Override
    public int deleteBlogNavigationTypeConfigById(Long id)
    {
        return blogNavigationTypeConfigMapper.deleteBlogNavigationTypeConfigById(id);
    }
}
